package cn.rengy.web;

import org.redisson.spring.starter.RedissonAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(exclude = { RedissonAutoConfiguration.class, RedisAutoConfiguration.class},scanBasePackages = {"cn.base.web", "cn.rengy.web"})
@ServletComponentScan(basePackages={"cn.base.web", "cn.rengy.web"})
@EnableScheduling
public class DemoMangodbApplication {

    public static void main(String[] args) {
    	ApplicationContext ctx=
    	SpringApplication.run(DemoMangodbApplication.class, args);
        String[] beanNames =  ctx.getBeanDefinitionNames();
        for(String s:beanNames){
            System.out.println(s+"="+ctx.getBean(s).getClass().getName());

        }
    }
}